const UserModel = require('../database/UserModel')
const list = (req, res) => {
  UserModel.list().then((data) => {
    res.json({
      code: 200,
      data,
    })
  })
}
const topUser = (req, res) => {
  UserModel.list().then((data) => {
    res.json({
      code: 200,
      data,
    })
  })
}

module.exports = {
  list,
}
